// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.app;

import android.app.ActivityManager;
import android.content.Context;
import android.text.TextUtils;
import com.nnee.j.e;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public class cls_g
{

    public cls_g()
    {
    }

    public static boolean a(Context context, String s)
    {
        boolean flag = false;
        if(!TextUtils.isEmpty(s)) goto _L2; else goto _L1
_L1:
        return flag;
_L2:
        ActivityManager activitymanager = (ActivityManager)context.getSystemService("activity");
        if(e.a() < 8) goto _L4; else goto _L3
_L3:
        Method method2;
        class cls_class2 = activitymanager.getClass();
        class cls_aclass1[] = new Class[1];
        aclass1[0] = java/lang/String;
        method2 = class2.getMethod("killBackgroundProcesses", aclass1);
        Method method = method2;
_L5:
        if(method == null)
            break MISSING_BLOCK_LABEL_191;
        Object aobj[] = new Object[1];
        aobj[0] = s;
        method.invoke(activitymanager, aobj);
        boolean flag1 = true;
_L6:
        flag = flag1;
          goto _L1
_L4:
        Method method1;
        class cls_class1 = activitymanager.getClass();
        class cls_aclass[] = new Class[1];
        aclass[0] = java/lang/String;
        method1 = class1.getMethod("restartPackage", aclass);
        method = method1;
          goto _L5
        SecurityException securityexception;
        securityexception;
        securityexception.printStackTrace();
        method = null;
          goto _L5
        NoSuchMethodException nosuchmethodexception;
        nosuchmethodexception;
        nosuchmethodexception.printStackTrace();
        method = null;
          goto _L5
        IllegalArgumentException illegalargumentexception;
        illegalargumentexception;
        illegalargumentexception.printStackTrace();
        flag1 = flag;
          goto _L6
        IllegalAccessException illegalaccessexception;
        illegalaccessexception;
        illegalaccessexception.printStackTrace();
        flag1 = flag;
          goto _L6
        InvocationTargetException invocationtargetexception;
        invocationtargetexception;
        invocationtargetexception.printStackTrace();
        flag1 = flag;
          goto _L6
    }
}
